package com.gcxy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gcxy.conf.result.R;
import com.gcxy.dto.AccountInfoDto;
import com.gcxy.entity.AccountInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiang
 * @since 2023-12-12
 */
public interface AccountInfoService extends IService<AccountInfo> {

    R addAccountInfo(AccountInfo accountInfo);

    Map<String, Object> login(AccountInfo accountInfo);

    Map<String, Object> current(String token);

    void logout(String token);

    R<Page<AccountInfo>> getAccountInfoByPage(AccountInfoDto accountInfoDto);

    R updateAccountInfo(AccountInfo accountInfo);
}
